package file;

import java.io.File;
import java.io.IOException;

public class CreateNewFileDeom {
    public static void main(String[]args) throws IOException {
        File file= new File("./test.txt");
        if (file.exists()){
            System.out.println("该文件存在！");
        }else{
            file.createNewFile();
            System.out.println("该文件已创建！");
        }
       double  s=file.length();
        System.out.println(s);


    }
}
